<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta name="robots" content="noindex,nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="layui/css/layui.css" />
<link rel="stylesheet" type="text/css" href="css/x.css"/>
<link type="text/css" href="img/alerts.css" rel="stylesheet" media="screen">
<title>视频分类</title>
<script type="text/javascript" language="javascript">var tentpath='/';</script>
<script src="js/common.js" type="text/javascript"></script>
<script src="js/main.js" type="text/javascript"></script>
<script language="javascript" src="js/jquery.min.js"></script>
<script src="layui/layui.js" type="text/javascript"></script>

<script language="javascript">
 $(document).ready(function(){

$("#btn_editall").click(function(){
				if(confirm('您确定要修改选中的分类吗?'))
				{
					document.formclass.action='?action=edit';
					document.formclass.submit();
				}
	 })
	
$("#btn_delall").click(function(){
				if(confirm('您确定要删除选中的分类吗?'))
				{
					document.formclass.action='?action=delall';
					document.formclass.submit();
				}
	 })

	
})

function del(id){
	if(confirm('您确定要删除选中的分类吗?'))
			{
			window.location='?action=del&id='+id;
			}
		
		}	
</script>
</head><body>
<!--当前导航-->

<div class="layui-fluid">
  <div class="r_content pd15">
    <div style="overflow-x: auto">        
		<form method="post" name="formclass" action=""> 
            <table class="layui-table" style="min-width:1170px;">
               <tr align="center" style="background-color: #F6F6F6;" >   	
				<td width="10%">ID</td>
				<td width="9%">中文名称</td>
				<td width="9%">英文别名</td>
				<td width="9%">频道模板</td>
				<td width="9%">内容模板</td>
				<td width="9%">播放模板</td>
				<td width="9%">标题</td>
				<td width="9%">关键词</td>
				<td width="10%">描述</td>
				<td width="5%">排序</td>
				<td width="10%">操作</td>
			  </tr>
					  
<?php typeList(0,"&nbsp;&nbsp;&nbsp;&nbsp;");?>
			  
<tr>
  <td colspan="6" align="left" width="100%"><label>全选&nbsp;&nbsp;<input type="checkbox" name="ChkAll" id="ChkAll" ids="S_ID"  class="checkbox" onclick="checkAll(this.checked,'input','e_id[]')"/></label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="editall" value="修改所选分类" class="rb1"  id="btn_editall"/>
				      &nbsp;&nbsp;<input type="button" name="delall"  value="删除所选分类" class="rb1"  id="btn_delall"/>&nbsp;&nbsp;&nbsp;移动到：
      <select name="upid_to"><option value="0">顶级分类</option>
    <?php makeTypeOption(0,"&nbsp;|&nbsp;",0);?>
	</select>&nbsp;<input type="submit" value="批量移动分类" name="Submit" class="rb1" onclick="formclass.action='?action=move';"/></td>
					  </tr>
                  
	</table> 
	</form>  
				
	
		
	<form id="form1" name="form1" method="post" action="?action=add">
		<table class="layui-table" style="min-width:1170px;">
		<tr style="background-color: #e2e9f6;" >
		  <td colspan="10">视频分类添加</td>
		</tr>
		<tr>
			<td width="15%" align=left>
			选择层级：<select name="upid"><option value="0">顶级分类：</option>
			<?php makeTypeOption(0,"&nbsp;|&nbsp;",0);?></select><font color='red'>＊</font>
			</td>
			<td  width="10%">中文名：
			  <input size="12" type="text" name="tname"><font color='red'>＊</font></td>
			<td  width="9%">英文名：
			  <input size="12" type="text" name="tenname"></td>
			<td  width="9%">频道模板：
			  <input size="12" type="text" name="templist"></td>
			<td  width="9%">内容模板：
			  <input size="12" type="text" name="templist_1"></td>
			  <td  width="9%">播放模板：
			  <input size="12" type="text" name="templist_2"></td>
		</tr><tr>
			<td width="9%">优化标题：
			  <input size="12" type="text" name="title"></td>
			<td  width="9%">关键字：
			  <input size="12" type="text" name="keyword"></td>
			<td  width="9%">描述词：
			  <input size="12" type="text" name="description"></td>

			<td width="9%">分类排序：
			  <input size="12" type="text" name="torder"></td>
			<td width="9%">
		<input type="submit" value="添　　加" name="Submit" class="layui-btn layui-btn-sm layui-btn-normal" /></td>
		<td > </td>
		</tr>
	</table>
	</form>  
				
	<table class="layui-table" style="min-width:1170px;">
        <form action="?action=movevideo" name="movevideo" id="movevideo" method="post">
          <tr style="background-color: #f6f4eb;" >
            <td class="td_title" >合并分类</td>
          </tr>
          <tr>
            <td>&nbsp;将分类：<select name='leftSelect'><option value=''>请选择视频分类</option><?php makeTypeOption(0,"&nbsp;|&nbsp;",0);?></select>&nbsp;&nbsp;的数据合并到：&nbsp;<select name='rightSelect'><option value=''>请选择视频分类</option><?php makeTypeOption(0,"&nbsp;|&nbsp;",0);?></select>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="确认合并" class="layui-btn layui-btn-sm layui-btn-normal" /></td>
          </tr>
               
     </table>
  </form>
  </div>
</div>
</div>
</body>
</html>
